<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>后台登录</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link href="css/login.css" rel="stylesheet" id="cssfile"
			type="text/css" />

  </head>
  
  <body>
    <script language="javascript">
    function validate(form)
    {  
       
       if(form.user_name.value.length==0){
            alert("用户名不能为空！");
            form.user_name.focus();
            return false
            }
       if(form.user_password.value.length==0){
            alert("密码不能为空！");
            form.user_password.focus();
            return false;
            }
    } 
    </script>
		<div>
			<div id="abstractPic"></div>
			<div id="inputPic">
				<div id="loginTable">
					<form method="post" action="/myblog/servlet/BGLoginServlet"
				onsubmit="return validate(this)">
						<input type="hidden" name="passwordMD5" value="" />
						<table style="width: 120px;" cellspacing="0" cellpadding="4">
							<tr>
								<td width="60px">
									用户名：
								</td>
							</tr>
							<tr>
								<td>
									<input type="text" name="user_name" value="" size="20"
										maxlength="20">
								</td>
							</tr>
							<tr>
								<td>
									密码：
								</td>
							</tr>
							<tr>
								<td>
									<input type="password" name="user_password" size="20"
										maxlength="14">
								</td>
							</tr>
							<tr>
								<td>
									<div>
					<input type="submit" name="login" value="登录" />
					<br />
				</div>
								</td>
							</tr>
						</table>
					</form>
				</div>
				

			</div>
  </body>
</html>
